﻿using FB.Membership.Annotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace FB.Security.MESSENGER
{

    public enum Menu : int
    {
        [Description("群組管理")]
        Manage = 1000,
        [Description("電郵")]
        Email = 2001,
        [Description("SMS")]
        SMS = 2002
    }



    #region 群組管理
    [SecurityFlag((int)Menu.Manage)]
    public enum Manage : long
    {
        [Description("查看")]
        View = 1,
        [Description("添加")]
        Create = 2,
        [Description("修改")]
        Modify = 4,
        [Description("删除")]
        Delete = 8,
        [Description("查看全部")]
        ViewAll = 16,
        [Description("查看佣金")]
        ViewCommission = 32,
        [Description("查看備註")]
        ViewRemark = 64,
    }
    #endregion


    #region 電郵
    [SecurityFlag((int)Menu.Email)]
    public enum Email : long
    {
        [Description("發送")]
        Send = 1,
        [Description("加入附件")]
        AddAttachment = 2
    }
    #endregion

    #region SMS
    [SecurityFlag((int)Menu.SMS)]
    public enum SMS : long
    {
        [Description("發送")]
        Send = 1
    }
    #endregion
}
